home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / op-endin.tip < prev    next >
Text File  |  1993-09-15  |  2KB  |  62 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 35.6.2, p. IV-114.
  16. % Original source in file "o2.TEX", starting line 1438.
  17. \wlog{L: "op-endin.tip" ["o2.TEX," l. 1438, p. IV-114]}%
  18. % This file DOES belong to format "texip."
  19. \catcode`\@ = 11
  20. \def\endinsert{% 
  21.     \egroup
  22.     \if@mid
  23.         \dimen@ = \ht0
  24.         \advance\dimen@ by \dp0
  25.         \advance\dimen@ by 12pt
  26.         \advance\dimen@ by \pagetotal
  27.         \ifdim\dimen@ > \pagegoal
  28.             \@midfalse
  29.             \p@gefalse
  30.         \fi
  31.     \fi
  32.     \NameUse{MidInsertFix}%
  33.     \if@mid
  34.         \bigskip
  35.         \box 0
  36.         \bigbreak
  37.     \else
  38.         \insert\topins{% 
  39.             \penalty 100
  40.             \splittopskip = 0pt
  41.             \splitmaxdepth = \maxdimen
  42.             \floatingpenalty = 0
  43.             \ifp@ge
  44.                 \dimen@ = \dp0
  45.                 \vbox to \vsize{
  46.                     \unvbox 0
  47.                     \kern -\dimen@
  48.                 }%
  49.                 \NameUse{MidInsertFixPage}%
  50.             \else
  51.                 \NameUse{EndInsertTopInsFix}%
  52.                 \NameUse{MidInsertFixTop}%
  53.                 \box 0
  54.                 \nobreak
  55.                 \bigskip
  56.             \fi
  57.         }
  58.     \fi
  59.     \endgroup
  60. }
  61. \catcode`\@ = 12
  62.